package homeWork;

import java.util.Scanner;

public class homeWork4 {
    public static void main(String[] args) {
        System.out.println("输入一个整数：");
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        meiwei(n);
        //直接转换为字符串类型进行打印
    }
    public static int meiwei(int n) {
        String numStr = Integer.toString(n);
        for (int i = 0; i < numStr.length(); i++) {
            System.out.println(numStr.charAt(i));
        }
        return 0;
    }
}
